import random as rand
#import maya.cmds as mc
holeList = mc.ls(sl=True)
materialList = mc.ls(mat=True)

revolve = 5
amount = 10
while i < amount:
    print rand.randint(1, revolve)
    i += 1



"""
## this is up for review

import random
import maya.cmds as cmds

dWin = cmds.window(title="Random Shader", wh=(182,160))
cmds.columnLayout()

cmds.button(label="Load objects", command="selObjects = cmds.ls(selection=True)")
cmds.text(label="Load objects to shade")

cmds.button(label="Load shaders", command="selShaders = cmds.ls(selection=True)")
cmds.text(label="Load shaders")

cmds.button(label="Assign shaders", command="assignShaders()")
cmds.text(label="Randomise and assign shaders")

cmds.showWindow(dWin)

def assignShaders():
    sizeListObjects = len(selObjects)
    sizeListShaders = len(selShaders)

    for i in range(0,sizeListObjects,1):
        cmds.select(selObjects[i], r=True)
        rNo = random.randint(0,sizeListShaders-1)
        cmds.hyperShade(assign=selShaders[rNo])
"""
